import request from '@/utils/request'

// 查询招标附件列表
export function listEvaFile(query) {
  return request({
    url: '/purs/evaFile/list',
    method: 'get',
    params: query
  })
}

// 查询招标附件详细
export function getEvaFile(evaCode) {
  return request({
    url: '/purs/evaFile/' + evaCode,
    method: 'get'
  })
}

// 新增招标附件
export function addEvaFile(data) {
  return request({
    url: '/purs/evaFile',
    method: 'post',
    data: data
  })
}

// 修改招标附件
export function updateEvaFile(data) {
  return request({
    url: '/purs/evaFile',
    method: 'put',
    data: data
  })
}

// 删除招标附件
export function delEvaFile(evaCode) {
  return request({
    url: '/purs/evaFile/' + evaCode,
    method: 'delete'
  })
}
